package p270jp.pxv.android.commonObjects.model;

import android.support.p024v4.media.C0261e;
import java.util.List;
import p325m0.MutabilityOwnership;
import p326m1.C4771r;
import p389ob.SerializedName;

/* compiled from: NotificationSettings.kt */
/* renamed from: jp.pxv.android.commonObjects.model.NotificationSettings */
/* loaded from: classes2.dex */
public final class NotificationSettings {
    @SerializedName("all_enabled")
    private final boolean enabled;
    @SerializedName("push_preview_enabled")
    private final boolean pushPreviewEnabled;
    @SerializedName("types")
    private final List<NotificationSettingType> types;

    public NotificationSettings(boolean z, boolean z2, List<NotificationSettingType> list) {
        MutabilityOwnership.m3745m(list, "types");
        this.enabled = z;
        this.pushPreviewEnabled = z2;
        this.types = list;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ NotificationSettings copy$default(NotificationSettings notificationSettings, boolean z, boolean z2, List list, int i, Object obj) {
        if ((i & 1) != 0) {
            z = notificationSettings.enabled;
        }
        if ((i & 2) != 0) {
            z2 = notificationSettings.pushPreviewEnabled;
        }
        if ((i & 4) != 0) {
            list = notificationSettings.types;
        }
        return notificationSettings.copy(z, z2, list);
    }

    public final boolean component1() {
        return this.enabled;
    }

    public final boolean component2() {
        return this.pushPreviewEnabled;
    }

    public final List<NotificationSettingType> component3() {
        return this.types;
    }

    public final NotificationSettings copy(boolean z, boolean z2, List<NotificationSettingType> list) {
        MutabilityOwnership.m3745m(list, "types");
        return new NotificationSettings(z, z2, list);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof NotificationSettings)) {
            return false;
        }
        NotificationSettings notificationSettings = (NotificationSettings) obj;
        return this.enabled == notificationSettings.enabled && this.pushPreviewEnabled == notificationSettings.pushPreviewEnabled && MutabilityOwnership.m3749h(this.types, notificationSettings.types);
    }

    public final boolean getEnabled() {
        return this.enabled;
    }

    public final boolean getPushPreviewEnabled() {
        return this.pushPreviewEnabled;
    }

    public final List<NotificationSettingType> getTypes() {
        return this.types;
    }

    public int hashCode() {
        boolean z = this.enabled;
        int i = 1;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = i2 * 31;
        boolean z2 = this.pushPreviewEnabled;
        if (!z2) {
            i = z2 ? 1 : 0;
        }
        return this.types.hashCode() + ((i5 + i) * 31);
    }

    public String toString() {
        StringBuilder c = C0261e.m12042c("NotificationSettings(enabled=");
        c.append(this.enabled);
        c.append(", pushPreviewEnabled=");
        c.append(this.pushPreviewEnabled);
        c.append(", types=");
        return C4771r.m3719c(c, this.types, ')');
    }
}
